<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Date" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
        <%
           Date date1=new Date();
           out.println(date1);
           Object time1=session.getAttribute("kssj");
           Date l2=(Date)time1;
           long l1=(date1.getTime()-l2.getTime())/1000;
           out.println("<br><br>");
           out.println("所用本次时间"+l1);
           session.setAttribute("jssj", date1);
           session.setAttribute("sj", l1);
        %>
        <br><br>
        <a href="jieguo.do">是否查看结果</a>
</body>
</html>